package com.seiya.cookit;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        Button recetas = (Button) findViewById(R.id.bt_recetas);
        recetas.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intencion = new Intent(getBaseContext(),RecetasActivity.class);
				startActivity(intencion);
				
			}
		});
		
		Button glosario = (Button) findViewById(R.id.bt_glosario);
		glosario.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intencion = new Intent(getBaseContext(), GlosarioActivity.class);
				startActivity(intencion);
			}
		});
		
		Button mrecetas = (Button) findViewById(R.id.bt_mrecetas);
		mrecetas.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intencion = new Intent(getBaseContext(), LoginActivity.class);
				startActivity(intencion);
			}
		});
		
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
